package entity

type Comments struct {
	ID             int    `gorm:"column:id;primaryKey"`
	NewsId         int    `gorm:"column:news_id"`
	UserId         int    `gorm:"column:user_id"`
	ReplyCommentId int    `gorm:"column:reply_comment_id"`
	Content        string `gorm:"column:content"`
	CommentTime    int64  `gorm:"column:comment_time"`
}

func (Comments) TableName() string {
	return "comments"
}

type CommentLikes struct {
	CommentId int   `gorm:"column:comment_id"`
	UserId    int   `gorm:"column:user_id"`
	Type      int   `gorm:"column:type"`
	LikeTime  int64 `gorm:"column:like_time"`
}

func (CommentLikes) TableName() string {
	return "comment_likes"
}
